package com.yanqu.road.entity.log.cross.apprentice;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

@FieldTypeAnnotation(tableName = "t_c_log_apprentice_project_event", autoSave = true, dataUpload = true, eventName = "attos_event", uploadCk = true, desc = "爱徒养成-项目事件日志", isCross = true)
public class LogCrossApprenticeProjectEvent extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", dataAttribute = "activityid", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "行程次数", dataAttribute = "attos_tripnum")
    private int doProjectNums;

    @FieldTypeAnnotation(desc = "项目ID", dataAttribute = "attos_item")
    private String projectId;

    @FieldTypeAnnotation(desc = "对方userId", dataAttribute = "attos_othid")
    private long targetUserId;

    @FieldTypeAnnotation(desc = "结果，1：胜利，2：失败", dataAttribute = "attos_result")
    private int winFlag;

    @FieldTypeAnnotation(desc = "天资奖励", dataAttribute = "attos_talentget")
    private String talentReward;

    public LogCrossApprenticeProjectEvent(int activityId, long userId, int doProjectNums, String projectId, long targetUserId, int winFlag, String talentReward) {
        this.activityId = activityId;
        this.userId = userId;
        this.doProjectNums = doProjectNums;
        this.projectId = projectId;
        this.targetUserId = targetUserId;
        this.winFlag = winFlag;
        this.talentReward = talentReward;
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    @Override
    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getDoProjectNums() {
        return doProjectNums;
    }

    public void setDoProjectNums(int doProjectNums) {
        this.doProjectNums = doProjectNums;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public long getTargetUserId() {
        return targetUserId;
    }

    public void setTargetUserId(long targetUserId) {
        this.targetUserId = targetUserId;
    }

    public int getWinFlag() {
        return winFlag;
    }

    public void setWinFlag(int winFlag) {
        this.winFlag = winFlag;
    }

    public String getTalentReward() {
        return talentReward;
    }

    public void setTalentReward(String talentReward) {
        this.talentReward = talentReward;
    }
}
